<?php
namespace App;

use Jenssegers\Mongodb\Eloquent\Model as Moloquent;

class MembersModel extends Moloquent{
    protected $connection = 'mongodb';  //数据库连接名
    protected $collection = 'member';   //collection文档名
    protected $primaryKey = '_id';    //设置id
    protected $fillable = ['id', 'name', 'phone'];  //设置字段白名单
}
